package com.xfp.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDto {
    @ApiModelProperty(value = "登录人的姓名",required = true)
    @NotBlank(message = "登录人姓名不能为空")
    private String loginName;
    @ApiModelProperty(value = "登录密码",required = true)
    @NotBlank(message = "密码不能为空")
    private String password;
    @ApiModelProperty("登录人的角色编号")
    private String code;
    @ApiModelProperty("token")
    private String clientToken;
    @ApiModelProperty("登录方式")
    private Integer loginType;
}
